import java.util.ArrayList;
import java.util.List;

public class InputParser {
    private String input;

    public InputParser(String input) {
        this.input = input;
    }

    public String customerType(){
        return splitList().get(0);
    }


    public List<String> dayList(){
        List<String> dayList = splitList();
        dayList.remove(0);
        return dayList;
    }

    private List<String> splitList(){
        String[] splitInput = input.split("\\s+");
        List<String> splitList = new ArrayList<String>();
        for (String s : splitInput) {
            splitList.add(inputChecker(s));
        }
        return splitList;
    }

    private String inputChecker(String s) {
        if(s.contains("Regular")) return "Regular";
        if(s.contains("Reserved")) return "Reserved";
        if(s.contains("mon")||
           s.contains("tues")||
           s.contains("wed")||
           s.contains("thur")||
           s.contains("fri")) return "weekday";
        if(s.contains("sat") || s.contains("sun")) return "weekend";
        return "";
    }
}
